<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>分页图书展示</title>
</head>
<body>
<table>
<tr>
<td>序号</td>
<td>图书名称</td>
<td>图书作者</td>
<td>图书价格</td>
<td>图书类别</td>
</tr>
<c:forEach items="${list}" var="b" varStatus="vs">
<tr>
<td>${vs.index+1}</td>
<td>${b.bname}</td>
<td>${b.author}</td>
<td>${b.currPrice}</td>
<td>${b.TCategory.cname}</td>
</tr>
</c:forEach>
</table>
</body>
</html>